package com.hexanet.commons;

public class HexanetConstants {
    
    // interval minutes for energy saving
    
    public static final int levelOneEnergyIntervalMinutes = 60;
    
    public static final int levelTwoEnergyIntervalMinutes = 50;
    
    public static final int levelThreeEnergyIntervalMinutes = 40;
    
    public static final int levelFourEnergyIntervalMinutes = 30;
    
    public static final int levelFiveEnergyIntervalMinutes = 25;
    
    public static final int levelSixEnergyIntervalMinutes = 20;
    
    public static final int levelSevenEnergyIntervalMinutes = 17;
    
    public static final int levelEightEnergyIntervalMinutes = 14;
    
    public static final int levelNineEnergyIntervalMinutes = 12;
    
    public static final int levelTenEnergyIntervalMinutes = 10;
    
    // fireall consumes energy per level
    
    public static final int levelOneFirewallEnergyConsume = 1;
    
    
    // cell produces energy
    
    public static final int homeCellProducesEnergy = 10;
    
    // start value of saved energy for home cell
    
    public static final int homeCellSavedEnergyStart = 120;

    
    public static int getEnergyIntervalForCellLevel(int cellLevel)
    {
	switch(cellLevel)
	{
	    case 1: return levelOneEnergyIntervalMinutes;
	    case 2: return levelTwoEnergyIntervalMinutes;
	    case 3: return levelThreeEnergyIntervalMinutes;
	    case 4: return levelFourEnergyIntervalMinutes;
	    case 5: return levelFiveEnergyIntervalMinutes;
	    case 6: return levelSixEnergyIntervalMinutes;
	    case 7: return levelSevenEnergyIntervalMinutes;
	    case 8: return levelEightEnergyIntervalMinutes;
	    case 9: return levelNineEnergyIntervalMinutes;
	    case 10: return levelTenEnergyIntervalMinutes;
	    default : return levelOneEnergyIntervalMinutes;
	    
	}
    }
    
    public static int getFirewallEnergyConsumeByLevel(int fwLevel)
    {
	switch(fwLevel)
	{
	    case 1: return levelOneFirewallEnergyConsume;
	    default : return levelOneFirewallEnergyConsume;
	    
	}
    }
       
}
